<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
<title>Document</title>
<link rel="stylesheet" href="../assets/agile/css/ratchet/css/ratchet.min.css">
<link rel="stylesheet" href="../assets/agile/css/flat/flat.component.css">
<link rel="stylesheet" href="../assets/agile/css/flat/iconline.css">
<link rel="stylesheet" href="../assets/app/css/app.css" />
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/jquery.js"></script>
<script type="text/javascript" src="../script/config.js"></script>
<script type="text/javascript" src="../script/local.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<style>.hidetext{
    overflow: hidden;
    white-space: nowrap;
    text-overflow:ellipsis;
}</style>
</head>
<body>
<!--通用顶部-->
<div id="ios-top-box">
    <div id="header" class="bar bar-nav">
    <div class="titlebar">
    <a href="javascript:appClose('noticelist',api);"><i class="iconfont iconline-arrow-left"></i></a>
    <h1 class="title">活动公告</h1>
    </div>
    </div>
</div>
<!--通用顶部结束-->
<section>
<div class="scroller">
	<ul class="listitem user-listitem-line">
		
	</ul>
</div>
</section>
</body>
<script type="text/javascript">
function issueArticle(aid){
	localData.set('atid',aid);
	api.openWin({
	name:'article2',
	url:'./article2.html',
	reload:true});
}

apiready = function(){
	GetJPData(config.url+'/app.php?act=noticelist',{},function(data){
		var html = '';
		for(var i in data){
			html += '<li><a href="javascript:issueArticle('+data[i]['id']+');">';
			html += '<i class="ricon iconfont iconline-arrow-right"></i>';
			html += '<div class="text hidetext">'+data[i]['title']+'</div></a></li>';
		}
		$('.listitem').html(html);
	});
};
</script>
</html>